/* 
 * Class to classify the parsed GUI Object properties into individual collections*/
import java.io.File;
import java.util.ArrayList;
import java.util.List;



@SuppressWarnings("unchecked")
public class TestClassData {
	 static List<String> nameList = new ArrayList();
	 static List<String> uniqueIDList = new ArrayList();
	 static List<String> hwndList = new ArrayList();
	 static List<String> locationList = new ArrayList();
	 static List<String> objectClassList = new ArrayList();
	 static List<String> styleList = new ArrayList();
	 static List<String> extStyleList = new ArrayList();
	 static List<String> roleList = new ArrayList();
	public File fileToOpen;
	
	public TestClassData()
	{
		
	}
	
	public void createDataLists()
	{
			
		ConceptXMLParser O = new ConceptXMLParser();
		
		O.parseXMl(fileToOpen);
		
		TableData ob = new TableData(null, null, null, null,null, null, null, null) ;
		
		 ob.setObjectClass(O.dataList.get(4).toString());
		 
		 for(int i=0;i<O.dataList.size();i+=8)
		 {
			 ob.setObjectClass(O.dataList.get(i).toString());
			 nameList.add(ob.getObjectClass());
			 
		 }
		 
		 for(int i=1;i<O.dataList.size();i+=8)
		 {
			 ob.setObjectClass(O.dataList.get(i).toString());
			 uniqueIDList.add(ob.getObjectClass());
			 
		 }
		 
		 for(int i=2;i<O.dataList.size();i+=8)
		 {
			 ob.setObjectClass(O.dataList.get(i).toString());
			 hwndList.add(ob.getObjectClass());
			 
		 }
		 
		 for(int i=3;i<O.dataList.size();i+=8)
		 {
			 ob.setObjectClass(O.dataList.get(i).toString());
			 locationList.add(ob.getObjectClass());
			 
		 }
		 
		 for(int i=4;i<O.dataList.size();i+=8)
		 {
			 ob.setObjectClass(O.dataList.get(i).toString());
			 objectClassList.add(ob.getObjectClass());
			 
		 }
		 
		 for(int i=5;i<O.dataList.size();i+=8)
		 {
			 ob.setObjectClass(O.dataList.get(i).toString());
			 styleList.add(ob.getObjectClass());
			 
		 }
		 
		 for(int i=6;i<O.dataList.size();i+=8)
		 {
			 ob.setObjectClass(O.dataList.get(i).toString());
			 extStyleList.add(ob.getObjectClass());
			 
		 }
		 
		 for(int i=7;i<O.dataList.size();i+=8)
		 {
			 ob.setObjectClass(O.dataList.get(i).toString());
			 roleList.add(ob.getObjectClass());
			 
		 }
		

		
		
	}

}
